package com.shop.shop.service.userfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "user",fallback = UserFeignError.class)
@Component
public interface UserFeign {
    @RequestMapping(value = "/user/user/userAvailable" ,method = RequestMethod.GET)
    public Boolean isUserAvailable(@RequestParam("uid") Long uid);

    @RequestMapping(value = "/user/user/get")
    public String get();
}
